<template>
    <div class="propsList" v-html="state.content">
        
    </div>
</template>
<script lang="ts" setup>
import {useRoute} from "vue-router"
import {reactive} from "vue"
import {detailposts} from "@/utils/api"
const {query} =useRoute()
const state =reactive({
     id:query.id,
     content:''
})
detailposts(state.id+'').then(res => {
    console.log(res);
    state.content = res.data.content
})
</script>
<style lang="scss" scoped>
.propsList{
    width: 800px;
    margin: 0 auto;
}
</style>